package com.cnh.o2o.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.cnh.o2o.entity.ShopCategory;
import com.cnh.o2o.entity.ShopCategory2;

public interface ShopCategoryDao {

	List<ShopCategory2> queryShopCategory(@Param("shopCategoryCondition") ShopCategory2 shopCategory2);
	
	List<ShopCategory2> queryFirstLevelShopCategoryList(@Param("shopCategoryCondition") ShopCategory2 shopCategory2);
	
	List<ShopCategory2> queryAllSecondLevelShopCategory();
	List<ShopCategory2> queryAllShopCategory();
	/**
	 * 
	 * @param shopCategoryId
	 * @return
	 */
	ShopCategory2 queryShopCategoryById(long shopCategoryId);

	/**
	 * 
	 * @param shopCategoryIdList
	 * @return
	 */
	List<ShopCategory2> queryShopCategoryByIds(List<Long> shopCategoryIdList);

	/**
	 * 
	 * @param shopCategory
	 * @return
	 */
	int insertShopCategory(ShopCategory2 shopCategory2);

	/**
	 * 
	 * @param shopCategory
	 * @return
	 */
	int updateShopCategory(ShopCategory2 shopCategory2);

	/**
	 * 
	 * @param shopCategoryId
	 * @return
	 */
	int deleteShopCategory(long shopCategoryId);

	/**
	 * 
	 * @param shopCategoryIdList
	 * @return
	 */
	int batchDeleteShopCategory(List<Long> shopCategoryIdList);
}
